package com.xuexiang.xuidemo.ability;

import ohos.aafwk.content.Intent;

import com.xuexiang.xuidemo.slice.CookieBarSlice;
import com.xuexiang.xuidemo.slice.EasyPopSlice;
import com.xuexiang.xuidemo.slice.PopupWindowAbilitySlice;
import com.xuexiang.xuidemo.slice.PopupWindowStyleSlice;
import com.xuexiang.xuidemo.slice.SnackbarSlice;
import com.xuexiang.xuidemo.slice.XulPopupSlice;
import com.xuexiang.xuidemo.slice.XulPopupWindowToastSlice;
import com.xuexiang.xuidemo.slice.popupwindow.ViewTipAbilitySlice;
import com.xuexiang.xuidemo.slice.popupwindow.XToastAbilitySlice;

/**
 * 弹出窗
 */
public class PopupWindowAbility extends BaseStatusAbility {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(PopupWindowAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, PopupWindowStyleSlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, EasyPopSlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, XulPopupSlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, SnackbarSlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, CookieBarSlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, XulPopupWindowToastSlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, ViewTipAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, XToastAbilitySlice.class.getName());

    }
}
